Ordering Rules
Within a class, struct or interface:
- Constant Fields
- Fields
- Constructors
- Finalizers (Destructors)
- Delegates
- Events
- Properties
- Indexers
- Methods
Within each of these groups order by access:
- public
- private
Within each of the access groups, order by static, then non-static:
- static
- non-static
Within each of the static/non-static groups of fields, order by readonly, then non-readonly :
- readonly
- non-readonly